{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { Keyframes } from '@ant-design/cssinjs';\nimport { genCollapseMotion } from '../../style/motion';\nimport { getStyle as getCheckboxStyle } from '../../checkbox/style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genFocusOutline, resetComponent } from '../../style';\n// ============================ Keyframes =============================\nvar treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', {\n  '0%': {\n    opacity: 0\n  },\n  '100%': {\n    opacity: 1\n  }\n});\n// ============================== Switch ==============================\nvar getSwitchStyle = function getSwitchStyle(prefixCls, token) {\n  return _defineProperty({}, \".\".concat(prefixCls, \"-switcher-icon\"), {\n    display: 'inline-block',\n    fontSize: 10,\n    verticalAlign: 'baseline',\n    svg: {\n      transition: \"transform \".concat(token.motionDurationSlow)\n    }\n  });\n};\n// =============================== Drop ===============================\nvar getDropIndicatorStyle = function getDropIndicatorStyle(prefixCls, token) {\n  return _defineProperty({}, \".\".concat(prefixCls, \"-drop-indicator\"), {\n    position: 'absolute',\n    // it should displayed over the following node\n    zIndex: 1,\n    height: 2,\n    backgroundColor: token.colorPrimary,\n    borderRadius: 1,\n    pointerEvents: 'none',\n    '&:after': {\n      position: 'absolute',\n      top: -3,\n      insetInlineStart: -6,\n      width: 8,\n      height: 8,\n      backgroundColor: 'transparent',\n      border: \"\".concat(token.lineWidthBold, \"px solid \").concat(token.colorPrimary),\n      borderRadius: '50%',\n      content: '\"\"'\n    }\n  });\n};\nexport var genBaseStyle = function genBaseStyle(prefixCls, token) {\n  var _$concat, _draggable, _$concat5, _$concat$concat, _showLine, _Object$assign;\n  var treeCls = token.treeCls,\n    treeNodeCls = token.treeNodeCls,\n    treeNodePadding = token.treeNodePadding,\n    treeTitleHeight = token.treeTitleHeight;\n  var treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2;\n  var treeCheckBoxMarginHorizontal = token.paddingXS;\n  return _defineProperty({}, treeCls, Object.assign(Object.assign({}, resetComponent(token)), (_Object$assign = {\n    background: token.colorBgContainer,\n    borderRadius: token.borderRadius,\n    transition: \"background-color \".concat(token.motionDurationSlow),\n    '&&-rtl': _defineProperty({}, \"\".concat(treeCls, \"-switcher\"), {\n      '&_close': _defineProperty({}, \"\".concat(treeCls, \"-switcher-icon\"), {\n        svg: {\n          transform: 'rotate(90deg)'\n        }\n      })\n    }),\n    '&-focused:not(:hover):not(&-active-focused)': Object.assign({}, genFocusOutline(token))\n  }, _defineProperty(_Object$assign, \"\".concat(treeCls, \"-list-holder-inner\"), {\n    alignItems: 'flex-start'\n  }), _defineProperty(_Object$assign, \"&\".concat(treeCls, \"-block-node\"), _defineProperty({}, \"\".concat(treeCls, \"-list-holder-inner\"), (_$concat = {\n    alignItems: 'stretch'\n  }, _defineProperty(_$concat, \"\".concat(treeCls, \"-node-content-wrapper\"), {\n    flex: 'auto'\n  }), _defineProperty(_$concat, \"\".concat(treeNodeCls, \".dragging\"), {\n    position: 'relative',\n    '&:after': {\n      position: 'absolute',\n      top: 0,\n      insetInlineEnd: 0,\n      bottom: treeNodePadding,\n      insetInlineStart: 0,\n      border: \"1px solid \".concat(token.colorPrimary),\n      opacity: 0,\n      animationName: treeNodeFX,\n      animationDuration: token.motionDurationSlow,\n      animationPlayState: 'running',\n      animationFillMode: 'forwards',\n      content: '\"\"',\n      pointerEvents: 'none'\n    }\n  }), _$concat))), _defineProperty(_Object$assign, \"\".concat(treeNodeCls), (_$concat5 = {\n    display: 'flex',\n    alignItems: 'flex-start',\n    padding: \"0 0 \".concat(treeNodePadding, \"px 0\"),\n    outline: 'none',\n    '&-rtl': {\n      direction: 'rtl'\n    },\n    // Disabled\n    '&-disabled': _defineProperty({}, \"\".concat(treeCls, \"-node-content-wrapper\"), {\n      color: token.colorTextDisabled,\n      cursor: 'not-allowed',\n      '&:hover': {\n        background: 'transparent'\n      }\n    })\n  }, _defineProperty(_$concat5, \"&-active \".concat(treeCls, \"-node-content-wrapper\"), Object.assign({}, genFocusOutline(token))), _defineProperty(_$concat5, \"&:not(&-disabled).filter-node \".concat(treeCls, \"-title\"), {\n    color: 'inherit',\n    fontWeight: 500\n  }), _defineProperty(_$concat5, '&-draggable', (_draggable = {}, _defineProperty(_draggable, \"\".concat(treeCls, \"-draggable-icon\"), _defineProperty({\n    width: treeTitleHeight,\n    lineHeight: \"\".concat(treeTitleHeight, \"px\"),\n    textAlign: 'center',\n    visibility: 'visible',\n    opacity: 0.2,\n    transition: \"opacity \".concat(token.motionDurationSlow)\n  }, \"\".concat(treeNodeCls, \":hover &\"), {\n    opacity: 0.45\n  })), _defineProperty(_draggable, \"&\".concat(treeNodeCls, \"-disabled\"), _defineProperty({}, \"\".concat(treeCls, \"-draggable-icon\"), {\n    visibility: 'hidden'\n  })), _draggable)), _$concat5)), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-indent\"), {\n    alignSelf: 'stretch',\n    whiteSpace: 'nowrap',\n    userSelect: 'none',\n    '&-unit': {\n      display: 'inline-block',\n      width: treeTitleHeight\n    }\n  }), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-draggable-icon\"), {\n    visibility: 'hidden'\n  }), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-switcher\"), Object.assign(Object.assign({}, getSwitchStyle(prefixCls, token)), {\n    position: 'relative',\n    flex: 'none',\n    alignSelf: 'stretch',\n    width: treeTitleHeight,\n    margin: 0,\n    lineHeight: \"\".concat(treeTitleHeight, \"px\"),\n    textAlign: 'center',\n    cursor: 'pointer',\n    userSelect: 'none',\n    '&-noop': {\n      cursor: 'default'\n    },\n    '&_close': _defineProperty({}, \"\".concat(treeCls, \"-switcher-icon\"), {\n      svg: {\n        transform: 'rotate(-90deg)'\n      }\n    }),\n    '&-loading-icon': {\n      color: token.colorPrimary\n    },\n    '&-leaf-line': {\n      position: 'relative',\n      zIndex: 1,\n      display: 'inline-block',\n      width: '100%',\n      height: '100%',\n      // https://github.com/ant-design/ant-design/issues/31884\n      '&:before': {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: treeTitleHeight / 2,\n        bottom: -treeNodePadding,\n        marginInlineStart: -1,\n        borderInlineEnd: \"1px solid \".concat(token.colorBorder),\n        content: '\"\"'\n      },\n      '&:after': {\n        position: 'absolute',\n        width: treeTitleHeight / 2 * 0.8,\n        height: treeTitleHeight / 2,\n        borderBottom: \"1px solid \".concat(token.colorBorder),\n        content: '\"\"'\n      }\n    }\n  })), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-checkbox\"), {\n    top: 'initial',\n    marginInlineEnd: treeCheckBoxMarginHorizontal,\n    marginBlockStart: treeCheckBoxMarginVertical\n  }), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-node-content-wrapper, \").concat(treeCls, \"-checkbox + span\"), (_$concat$concat = {\n    position: 'relative',\n    zIndex: 'auto',\n    minHeight: treeTitleHeight,\n    margin: 0,\n    padding: \"0 \".concat(token.paddingXS / 2, \"px\"),\n    color: 'inherit',\n    lineHeight: \"\".concat(treeTitleHeight, \"px\"),\n    background: 'transparent',\n    borderRadius: token.borderRadius,\n    cursor: 'pointer',\n    transition: \"all \".concat(token.motionDurationMid, \", border 0s, line-height 0s, box-shadow 0s\"),\n    '&:hover': {\n      backgroundColor: token.controlItemBgHover\n    }\n  }, _defineProperty(_$concat$concat, \"&\".concat(treeCls, \"-node-selected\"), {\n    backgroundColor: token.controlItemBgActive\n  }), _defineProperty(_$concat$concat, \"\".concat(treeCls, \"-iconEle\"), {\n    display: 'inline-block',\n    width: treeTitleHeight,\n    height: treeTitleHeight,\n    lineHeight: \"\".concat(treeTitleHeight, \"px\"),\n    textAlign: 'center',\n    verticalAlign: 'top',\n    '&:empty': {\n      display: 'none'\n    }\n  }), _$concat$concat)), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-unselectable \").concat(treeCls, \"-node-content-wrapper:hover\"), {\n    backgroundColor: 'transparent'\n  }), _defineProperty(_Object$assign, \"\".concat(treeCls, \"-node-content-wrapper\"), Object.assign({\n    lineHeight: \"\".concat(treeTitleHeight, \"px\"),\n    userSelect: 'none'\n  }, getDropIndicatorStyle(prefixCls, token))), _defineProperty(_Object$assign, \"\".concat(treeNodeCls, \".drop-container\"), {\n    '> [draggable]': {\n      boxShadow: \"0 0 0 2px \".concat(token.colorPrimary)\n    }\n  }), _defineProperty(_Object$assign, '&-show-line', (_showLine = {}, _defineProperty(_showLine, \"\".concat(treeCls, \"-indent\"), {\n    '&-unit': {\n      position: 'relative',\n      height: '100%',\n      '&:before': {\n        position: 'absolute',\n        top: 0,\n        insetInlineEnd: treeTitleHeight / 2,\n        bottom: -treeNodePadding,\n        borderInlineEnd: \"1px solid \".concat(token.colorBorder),\n        content: '\"\"'\n      },\n      '&-end': {\n        '&:before': {\n          display: 'none'\n        }\n      }\n    }\n  }), _defineProperty(_showLine, \"\".concat(treeCls, \"-switcher\"), {\n    background: 'transparent',\n    '&-line-icon': {\n      // https://github.com/ant-design/ant-design/issues/32813\n      verticalAlign: '-0.15em'\n    }\n  }), _showLine)), _defineProperty(_Object$assign, \"\".concat(treeNodeCls, \"-leaf-last\"), _defineProperty({}, \"\".concat(treeCls, \"-switcher\"), {\n    '&-leaf-line': {\n      '&:before': {\n        top: 'auto !important',\n        bottom: 'auto !important',\n        height: \"\".concat(treeTitleHeight / 2, \"px !important\")\n      }\n    }\n  })), _Object$assign)));\n};\n// ============================ Directory =============================\nexport var genDirectoryStyle = function genDirectoryStyle(token) {\n  var _selected, _treeNodeCls;\n  var treeCls = token.treeCls,\n    treeNodeCls = token.treeNodeCls,\n    treeNodePadding = token.treeNodePadding;\n  return _defineProperty({}, \"\".concat(treeCls).concat(treeCls, \"-directory\"), _defineProperty({}, treeNodeCls, (_treeNodeCls = {\n    position: 'relative',\n    // Hover color\n    '&:before': {\n      position: 'absolute',\n      top: 0,\n      insetInlineEnd: 0,\n      bottom: treeNodePadding,\n      insetInlineStart: 0,\n      transition: \"background-color \".concat(token.motionDurationMid),\n      content: '\"\"',\n      pointerEvents: 'none'\n    },\n    '&:hover': {\n      '&:before': {\n        background: token.controlItemBgHover\n      }\n    },\n    // Elements\n    '> *': {\n      zIndex: 1\n    }\n  }, _defineProperty(_treeNodeCls, \"\".concat(treeCls, \"-switcher\"), {\n    transition: \"color \".concat(token.motionDurationMid)\n  }), _defineProperty(_treeNodeCls, \"\".concat(treeCls, \"-node-content-wrapper\"), _defineProperty({\n    borderRadius: 0,\n    userSelect: 'none',\n    '&:hover': {\n      background: 'transparent'\n    }\n  }, \"&\".concat(treeCls, \"-node-selected\"), {\n    color: token.colorTextLightSolid,\n    background: 'transparent'\n  })), _defineProperty(_treeNodeCls, '&-selected', (_selected = {}, _defineProperty(_selected, \"\\n            &:hover::before,\\n            &::before\\n          \", {\n    background: token.colorPrimary\n  }), _defineProperty(_selected, \"\".concat(treeCls, \"-switcher\"), {\n    color: token.colorTextLightSolid\n  }), _defineProperty(_selected, \"\".concat(treeCls, \"-node-content-wrapper\"), {\n    color: token.colorTextLightSolid,\n    background: 'transparent'\n  }), _selected)), _treeNodeCls)));\n};\n// ============================== Merged ==============================\nexport var genTreeStyle = function genTreeStyle(prefixCls, token) {\n  var treeCls = \".\".concat(prefixCls);\n  var treeNodeCls = \"\".concat(treeCls, \"-treenode\");\n  var treeNodePadding = token.paddingXS / 2;\n  var treeTitleHeight = token.controlHeightSM;\n  var treeToken = mergeToken(token, {\n    treeCls: treeCls,\n    treeNodeCls: treeNodeCls,\n    treeNodePadding: treeNodePadding,\n    treeTitleHeight: treeTitleHeight\n  });\n  return [\n  // Basic\n  genBaseStyle(prefixCls, treeToken),\n  // Directory\n  genDirectoryStyle(treeToken)];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Tree', function (token, _ref) {\n  var prefixCls = _ref.prefixCls;\n  return [_defineProperty({}, token.componentCls, getCheckboxStyle(\"\".concat(prefixCls, \"-checkbox\"), token)), genTreeStyle(prefixCls, token), genCollapseMotion(token)];\n});","map":{"version":3,"names":["Keyframes","genCollapseMotion","getStyle","getCheckboxStyle","genComponentStyleHook","mergeToken","genFocusOutline","resetComponent","treeNodeFX","opacity","getSwitchStyle","prefixCls","token","display","fontSize","verticalAlign","svg","transition","motionDurationSlow","getDropIndicatorStyle","position","zIndex","height","backgroundColor","colorPrimary","borderRadius","pointerEvents","top","insetInlineStart","width","border","lineWidthBold","content","genBaseStyle","treeCls","treeNodeCls","treeNodePadding","treeTitleHeight","treeCheckBoxMarginVertical","fontSizeLG","treeCheckBoxMarginHorizontal","paddingXS","Object","assign","background","colorBgContainer","transform","alignItems","flex","insetInlineEnd","bottom","animationName","animationDuration","animationPlayState","animationFillMode","padding","outline","direction","color","colorTextDisabled","cursor","fontWeight","lineHeight","textAlign","visibility","alignSelf","whiteSpace","userSelect","margin","marginInlineStart","borderInlineEnd","colorBorder","borderBottom","marginInlineEnd","marginBlockStart","minHeight","motionDurationMid","controlItemBgHover","controlItemBgActive","boxShadow","genDirectoryStyle","colorTextLightSolid","genTreeStyle","controlHeightSM","treeToken","_ref","componentCls"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tree/style/index.js"],"sourcesContent":["import { Keyframes } from '@ant-design/cssinjs';\nimport { genCollapseMotion } from '../../style/motion';\nimport { getStyle as getCheckboxStyle } from '../../checkbox/style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genFocusOutline, resetComponent } from '../../style';\n// ============================ Keyframes =============================\nconst treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', {\n  '0%': {\n    opacity: 0\n  },\n  '100%': {\n    opacity: 1\n  }\n});\n// ============================== Switch ==============================\nconst getSwitchStyle = (prefixCls, token) => ({\n  [`.${prefixCls}-switcher-icon`]: {\n    display: 'inline-block',\n    fontSize: 10,\n    verticalAlign: 'baseline',\n    svg: {\n      transition: `transform ${token.motionDurationSlow}`\n    }\n  }\n});\n// =============================== Drop ===============================\nconst getDropIndicatorStyle = (prefixCls, token) => ({\n  [`.${prefixCls}-drop-indicator`]: {\n    position: 'absolute',\n    // it should displayed over the following node\n    zIndex: 1,\n    height: 2,\n    backgroundColor: token.colorPrimary,\n    borderRadius: 1,\n    pointerEvents: 'none',\n    '&:after': {\n      position: 'absolute',\n      top: -3,\n      insetInlineStart: -6,\n      width: 8,\n      height: 8,\n      backgroundColor: 'transparent',\n      border: `${token.lineWidthBold}px solid ${token.colorPrimary}`,\n      borderRadius: '50%',\n      content: '\"\"'\n    }\n  }\n});\nexport const genBaseStyle = (prefixCls, token) => {\n  const {\n    treeCls,\n    treeNodeCls,\n    treeNodePadding,\n    treeTitleHeight\n  } = token;\n  const treeCheckBoxMarginVertical = (treeTitleHeight - token.fontSizeLG) / 2;\n  const treeCheckBoxMarginHorizontal = token.paddingXS;\n  return {\n    [treeCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n      background: token.colorBgContainer,\n      borderRadius: token.borderRadius,\n      transition: `background-color ${token.motionDurationSlow}`,\n      '&&-rtl': {\n        // >>> Switcher\n        [`${treeCls}-switcher`]: {\n          '&_close': {\n            [`${treeCls}-switcher-icon`]: {\n              svg: {\n                transform: 'rotate(90deg)'\n              }\n            }\n          }\n        }\n      },\n      '&-focused:not(:hover):not(&-active-focused)': Object.assign({}, genFocusOutline(token)),\n      // =================== Virtual List ===================\n      [`${treeCls}-list-holder-inner`]: {\n        alignItems: 'flex-start'\n      },\n      [`&${treeCls}-block-node`]: {\n        [`${treeCls}-list-holder-inner`]: {\n          alignItems: 'stretch',\n          // >>> Title\n          [`${treeCls}-node-content-wrapper`]: {\n            flex: 'auto'\n          },\n          // >>> Drag\n          [`${treeNodeCls}.dragging`]: {\n            position: 'relative',\n            '&:after': {\n              position: 'absolute',\n              top: 0,\n              insetInlineEnd: 0,\n              bottom: treeNodePadding,\n              insetInlineStart: 0,\n              border: `1px solid ${token.colorPrimary}`,\n              opacity: 0,\n              animationName: treeNodeFX,\n              animationDuration: token.motionDurationSlow,\n              animationPlayState: 'running',\n              animationFillMode: 'forwards',\n              content: '\"\"',\n              pointerEvents: 'none'\n            }\n          }\n        }\n      },\n      // ===================== TreeNode =====================\n      [`${treeNodeCls}`]: {\n        display: 'flex',\n        alignItems: 'flex-start',\n        padding: `0 0 ${treeNodePadding}px 0`,\n        outline: 'none',\n        '&-rtl': {\n          direction: 'rtl'\n        },\n        // Disabled\n        '&-disabled': {\n          // >>> Title\n          [`${treeCls}-node-content-wrapper`]: {\n            color: token.colorTextDisabled,\n            cursor: 'not-allowed',\n            '&:hover': {\n              background: 'transparent'\n            }\n          }\n        },\n        [`&-active ${treeCls}-node-content-wrapper`]: Object.assign({}, genFocusOutline(token)),\n        [`&:not(&-disabled).filter-node ${treeCls}-title`]: {\n          color: 'inherit',\n          fontWeight: 500\n        },\n        '&-draggable': {\n          [`${treeCls}-draggable-icon`]: {\n            width: treeTitleHeight,\n            lineHeight: `${treeTitleHeight}px`,\n            textAlign: 'center',\n            visibility: 'visible',\n            opacity: 0.2,\n            transition: `opacity ${token.motionDurationSlow}`,\n            [`${treeNodeCls}:hover &`]: {\n              opacity: 0.45\n            }\n          },\n          [`&${treeNodeCls}-disabled`]: {\n            [`${treeCls}-draggable-icon`]: {\n              visibility: 'hidden'\n            }\n          }\n        }\n      },\n      // >>> Indent\n      [`${treeCls}-indent`]: {\n        alignSelf: 'stretch',\n        whiteSpace: 'nowrap',\n        userSelect: 'none',\n        '&-unit': {\n          display: 'inline-block',\n          width: treeTitleHeight\n        }\n      },\n      // >>> Drag Handler\n      [`${treeCls}-draggable-icon`]: {\n        visibility: 'hidden'\n      },\n      // >>> Switcher\n      [`${treeCls}-switcher`]: Object.assign(Object.assign({}, getSwitchStyle(prefixCls, token)), {\n        position: 'relative',\n        flex: 'none',\n        alignSelf: 'stretch',\n        width: treeTitleHeight,\n        margin: 0,\n        lineHeight: `${treeTitleHeight}px`,\n        textAlign: 'center',\n        cursor: 'pointer',\n        userSelect: 'none',\n        '&-noop': {\n          cursor: 'default'\n        },\n        '&_close': {\n          [`${treeCls}-switcher-icon`]: {\n            svg: {\n              transform: 'rotate(-90deg)'\n            }\n          }\n        },\n        '&-loading-icon': {\n          color: token.colorPrimary\n        },\n        '&-leaf-line': {\n          position: 'relative',\n          zIndex: 1,\n          display: 'inline-block',\n          width: '100%',\n          height: '100%',\n          // https://github.com/ant-design/ant-design/issues/31884\n          '&:before': {\n            position: 'absolute',\n            top: 0,\n            insetInlineEnd: treeTitleHeight / 2,\n            bottom: -treeNodePadding,\n            marginInlineStart: -1,\n            borderInlineEnd: `1px solid ${token.colorBorder}`,\n            content: '\"\"'\n          },\n          '&:after': {\n            position: 'absolute',\n            width: treeTitleHeight / 2 * 0.8,\n            height: treeTitleHeight / 2,\n            borderBottom: `1px solid ${token.colorBorder}`,\n            content: '\"\"'\n          }\n        }\n      }),\n      // >>> Checkbox\n      [`${treeCls}-checkbox`]: {\n        top: 'initial',\n        marginInlineEnd: treeCheckBoxMarginHorizontal,\n        marginBlockStart: treeCheckBoxMarginVertical\n      },\n      // >>> Title\n      // add `${treeCls}-checkbox + span` to cover checkbox `${checkboxCls} + span`\n      [`${treeCls}-node-content-wrapper, ${treeCls}-checkbox + span`]: {\n        position: 'relative',\n        zIndex: 'auto',\n        minHeight: treeTitleHeight,\n        margin: 0,\n        padding: `0 ${token.paddingXS / 2}px`,\n        color: 'inherit',\n        lineHeight: `${treeTitleHeight}px`,\n        background: 'transparent',\n        borderRadius: token.borderRadius,\n        cursor: 'pointer',\n        transition: `all ${token.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,\n        '&:hover': {\n          backgroundColor: token.controlItemBgHover\n        },\n        [`&${treeCls}-node-selected`]: {\n          backgroundColor: token.controlItemBgActive\n        },\n        // Icon\n        [`${treeCls}-iconEle`]: {\n          display: 'inline-block',\n          width: treeTitleHeight,\n          height: treeTitleHeight,\n          lineHeight: `${treeTitleHeight}px`,\n          textAlign: 'center',\n          verticalAlign: 'top',\n          '&:empty': {\n            display: 'none'\n          }\n        }\n      },\n      // https://github.com/ant-design/ant-design/issues/28217\n      [`${treeCls}-unselectable ${treeCls}-node-content-wrapper:hover`]: {\n        backgroundColor: 'transparent'\n      },\n      // ==================== Draggable =====================\n      [`${treeCls}-node-content-wrapper`]: Object.assign({\n        lineHeight: `${treeTitleHeight}px`,\n        userSelect: 'none'\n      }, getDropIndicatorStyle(prefixCls, token)),\n      [`${treeNodeCls}.drop-container`]: {\n        '> [draggable]': {\n          boxShadow: `0 0 0 2px ${token.colorPrimary}`\n        }\n      },\n      // ==================== Show Line =====================\n      '&-show-line': {\n        // ================ Indent lines ================\n        [`${treeCls}-indent`]: {\n          '&-unit': {\n            position: 'relative',\n            height: '100%',\n            '&:before': {\n              position: 'absolute',\n              top: 0,\n              insetInlineEnd: treeTitleHeight / 2,\n              bottom: -treeNodePadding,\n              borderInlineEnd: `1px solid ${token.colorBorder}`,\n              content: '\"\"'\n            },\n            '&-end': {\n              '&:before': {\n                display: 'none'\n              }\n            }\n          }\n        },\n        // ============== Cover Background ==============\n        [`${treeCls}-switcher`]: {\n          background: 'transparent',\n          '&-line-icon': {\n            // https://github.com/ant-design/ant-design/issues/32813\n            verticalAlign: '-0.15em'\n          }\n        }\n      },\n      [`${treeNodeCls}-leaf-last`]: {\n        [`${treeCls}-switcher`]: {\n          '&-leaf-line': {\n            '&:before': {\n              top: 'auto !important',\n              bottom: 'auto !important',\n              height: `${treeTitleHeight / 2}px !important`\n            }\n          }\n        }\n      }\n    })\n  };\n};\n// ============================ Directory =============================\nexport const genDirectoryStyle = token => {\n  const {\n    treeCls,\n    treeNodeCls,\n    treeNodePadding\n  } = token;\n  return {\n    [`${treeCls}${treeCls}-directory`]: {\n      // ================== TreeNode ==================\n      [treeNodeCls]: {\n        position: 'relative',\n        // Hover color\n        '&:before': {\n          position: 'absolute',\n          top: 0,\n          insetInlineEnd: 0,\n          bottom: treeNodePadding,\n          insetInlineStart: 0,\n          transition: `background-color ${token.motionDurationMid}`,\n          content: '\"\"',\n          pointerEvents: 'none'\n        },\n        '&:hover': {\n          '&:before': {\n            background: token.controlItemBgHover\n          }\n        },\n        // Elements\n        '> *': {\n          zIndex: 1\n        },\n        // >>> Switcher\n        [`${treeCls}-switcher`]: {\n          transition: `color ${token.motionDurationMid}`\n        },\n        // >>> Title\n        [`${treeCls}-node-content-wrapper`]: {\n          borderRadius: 0,\n          userSelect: 'none',\n          '&:hover': {\n            background: 'transparent'\n          },\n          [`&${treeCls}-node-selected`]: {\n            color: token.colorTextLightSolid,\n            background: 'transparent'\n          }\n        },\n        // ============= Selected =============\n        '&-selected': {\n          [`\n            &:hover::before,\n            &::before\n          `]: {\n            background: token.colorPrimary\n          },\n          // >>> Switcher\n          [`${treeCls}-switcher`]: {\n            color: token.colorTextLightSolid\n          },\n          // >>> Title\n          [`${treeCls}-node-content-wrapper`]: {\n            color: token.colorTextLightSolid,\n            background: 'transparent'\n          }\n        }\n      }\n    }\n  };\n};\n// ============================== Merged ==============================\nexport const genTreeStyle = (prefixCls, token) => {\n  const treeCls = `.${prefixCls}`;\n  const treeNodeCls = `${treeCls}-treenode`;\n  const treeNodePadding = token.paddingXS / 2;\n  const treeTitleHeight = token.controlHeightSM;\n  const treeToken = mergeToken(token, {\n    treeCls,\n    treeNodeCls,\n    treeNodePadding,\n    treeTitleHeight\n  });\n  return [\n  // Basic\n  genBaseStyle(prefixCls, treeToken),\n  // Directory\n  genDirectoryStyle(treeToken)];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Tree', (token, _ref) => {\n  let {\n    prefixCls\n  } = _ref;\n  return [{\n    [token.componentCls]: getCheckboxStyle(`${prefixCls}-checkbox`, token)\n  }, genTreeStyle(prefixCls, token), genCollapseMotion(token)];\n});"],"mappings":";AAAA,SAASA,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,iBAAiB,QAAQ,oBAAoB;AACtD,SAASC,QAAQ,IAAIC,gBAAgB,QAAQ,sBAAsB;AACnE,SAASC,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,SAASC,eAAe,EAAEC,cAAc,QAA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